const SIDER_MENU = [
    {
      title: "项目管理",
      icon: "iconfont icon-project",
      submenus: [
        // {
        //   title: "项目列表",
        //   path: "/project/list",
        // },
        // {
        //   title: "线索列表",
        //   path: "/clue/list",
        // },
        {
          title: "借支列表",
          path: "/borrow/list",
        },
        {
          title: "还款列表",
          path: "/repay/list",
        },
        {
          title: "报销申请列表",
          path: "/settleapply/list",
        },
        {
          title: "报销列表",
          path: "/settle/list",
        },
        {
          title: "交接清单",
          path: "/delivery/list",
        },
        {
          title: "支付列表",
          path: "/payment/list",
        },
        {
          title: "支付批次列表",
          path: "/paybatch/list",
        },
      ],
    },
    {
      title: "供应商管理",
      icon: "iconfont icon-supplier",
      path: "/supplier/list",
    },
  ];
  export const actions = {
    UPDATE_USER_INFO: "updateUserInfo",
  };
  export default {
    namespaced: true,
    state: () => ({
      userInfo: "",
    }),
    mutations: {
      setUserInfo(state, userInfo) {
       state.userInfo=userInfo
      },
    },
    actions: {
      updateUserInfo: async ({ commit }, userInfo) => {
        commit("setUserInfo", userInfo);
      },
    },
  };
  